package com.ruoyi.season.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.appuser.domain.vo.AppuserPlayVO;
import com.ruoyi.season.domain.PlaySeason;
import com.ruoyi.season.domain.vo.PlaySeasonInfoVo;

/**
 * 赛季Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-14
 */
public interface PlaySeasonMapper extends BaseMapper<PlaySeason>
{
    /**
     * 查询赛季
     *
     * @param id 赛季主键
     * @return 赛季
     */
    public PlaySeason selectPlaySeasonById(String id);

    /**
     * 查询赛季列表
     *
     * @param playSeason 赛季
     * @return 赛季集合
     */
    public List<PlaySeason> selectPlaySeasonList(PlaySeason playSeason);

    /**
     * 新增赛季
     *
     * @param playSeason 赛季
     * @return 结果
     */
    public int insertPlaySeason(PlaySeason playSeason);

    /**
     * 修改赛季
     *
     * @param playSeason 赛季
     * @return 结果
     */
    public int updatePlaySeason(PlaySeason playSeason);

    /**
     * 删除赛季
     *
     * @param id 赛季主键
     * @return 结果
     */
    public int deletePlaySeasonById(String id);

    /**
     * 批量删除赛季
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePlaySeasonByIds(String[] ids);

    AppuserPlayVO selectPayInfo(String playSeasonId);

    List<PlaySeasonInfoVo> selectPlaySeasonInfo(IPage<PlaySeasonInfoVo> page);
}
